﻿if (location.protocol != 'http:' || location.hostname != 'seo.puamac.cn') {
    location.href = 'http://seo.puamac.cn' + location.pathname + location.search;
}

function heredoc(fn) {
    return fn.toString().split('\n').slice(1,-1).join('\n') + '\n'
}

var pagehtml = heredoc(function(){/*
<main role="main" id="main">

      <section class="jumbotron text-center">
        <div class="container">
          <h1 class="jumbotron-heading" id="heading">超级外链执行程序</h1>
          <p class="lead text-muted">全自动化超级SEO外链工具，可免费在线批量增加网站外链，大大提高发外链工作效率，是SEO人不可缺少的SEO工具。<a href="http://seo.puamac.cn/" target="_blank">返回首页</a></p>
          
          <hr class="mb-4">
          
        <form class="text-left" method="get" action="/index.html">

            <input type="hidden" name="index" value="0" />

            <div class="row">
                <div class="col-md-2 mb-3">
                    <label for="time" class="small text-muted">换页时间</label>
                    <input class="form-control" id="time" name="time" value="15" placeholder="" type="text" required>
                </div>
                <div class="col-md-10 mb-3">
                    <label for="domain" class="small text-muted">推广网址</label>
                    <div class="input-group">
                        <div class="input-group-prepend">
                            <span class="input-group-text">http://</span>
                        </div>
                        <input type="text" id="domain" name="domain" class="form-control" value="www.6nww.com" placeholder="请输入网站域名" aria-label="请输入网站域名" required>
                        <div class="input-group-append" id="submit-input">
                            <button type="submit" class="btn btn-primary">开始工作</button>
                        </div>
                    </div>
                </div>
            </div>

        </form>

<div class="alert alert-primary" role="alert" id="timenum"><p class="small">超级外链工具平均每15秒就要打开10个网页，需要浏览器具备良好的性能</p><p>推荐在 <a rel="nofollow" href="https://download.mozilla.org/?product=firefox-latest-ssl&os=win&lang=zh-CN" target="_blank">Firefox</a> 或 <a rel="nofollow" href="https://dl.360safe.com/netunion/20140425/360se%2b75526%2bn1abed0ce91.exe" target="_blank">360浏览器</a> 使用本工具</p></div>

<hr class="mb-4">

<p class="text-left text-muted small">参数说明：因为目标网址数量达到数千条，需要分页访问，每页打开十条查询，因此需要设置一个分页时间（单位：秒），数值可根据您的电脑性能及网络速度调整。</p>

<hr class="mb-4">
  
<div id="success"><div class="alert alert-primary" role="alert">欢迎使用超级外链工具！ 收藏超级外链工具快捷键 CTRL + D </div></div>
  
<div class="text-left" id="jobs"></div>

        </div>
      </section>


    </main>
 */});
 
document.write(pagehtml);

var pagecss = heredoc(function(){/*
        :root{--jumbotron-padding-y:3rem}
        .jumbotron{padding-top:var(--jumbotron-padding-y);padding-bottom:var(--jumbotron-padding-y);margin-bottom:0}
        @media (min-width:768px){.jumbotron{padding-top:calc(var(--jumbotron-padding-y) * 2);padding-bottom:calc(var(--jumbotron-padding-y) * 2)}
        }
        .jumbotron p:last-child{margin-bottom:0}
        .jumbotron-heading{font-weight:300;margin-bottom:20px}
        .jumbotron .container{max-width:40rem}
        footer{padding-top:3rem;padding-bottom:3rem}
        footer p{margin-bottom:.25rem}
        .box-shadow{box-shadow:0 .25rem .75rem rgba(0,0,0,.05)}
        body{background-color:#e9ecef;overflow-y:scroll}
        @media (max-width: 575.98px) {
            .jumbotron-heading {font-size: 2rem;}
        }
 */});
 
var head = document.head || document.getElementsByTagName('head')[0],
    style = document.createElement('style');

style.type = 'text/css';
if (style.styleSheet){
  style.styleSheet.cssText = pagecss;
} else {
  style.appendChild(document.createTextNode(pagecss));
}

head.appendChild(style);